package com.jinlia.show.modules.system.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jinlia.show.modules.base.model.po.OrderRefundPO;
import com.jinlia.show.modules.base.model.query.OrderQuery;
import com.jinlia.show.modules.base.system.service.OrderRefundMapperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("orderRefund")
public class OrderRefundController {
    @Autowired
    OrderRefundMapperService orderRefundMapperService;
    @PostMapping("page")
    public ResponseEntity<Page<OrderRefundPO>> page(@RequestBody OrderQuery orderQuery) {
        Page<OrderRefundPO> orderPOIPage = orderRefundMapperService.pageList(orderQuery);
        return ResponseEntity.ok(orderPOIPage);
    }
}
